package com.heima.apis.user;

import com.heima.apis.user.fallback.IUserClientFallback;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.pojos.ApUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-user",fallback = IUserClientFallback.class)
public interface IUserClient {
    @PostMapping("/api/v1/user/selectById")
    ResponseResult selectUser(@RequestBody Integer userId);
}
